//
//  NotifyingClass.m
//  TextApp
//
//  Created by panos on 16/11/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "NotifyingClass.h"

@implementation NotifyingClass

- (IBAction)displaySomeText:(id)sender
{
	float radius = 0.0;

	[textView insertText:
	 [NSString stringWithFormat:
	  @"The circumference of %.4f is: %f\n", radius, [self generateValue:&radius]]];	
}

- (float)generateValue:(float *)originalValue
{
	float value = [textField floatValue];
	*originalValue = value;
	return [MathUtilities circumferenceFromRadius:value];
}

@end
